package com.coolcode.util;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

import static org.junit.jupiter.api.Assertions.*;

public class BCryptUtil {
    private static BCryptPasswordEncoder passwordEncoder = new BCryptPasswordEncoder();

    public static String encode(String input) {
        if (input == null) {
            return null;
        }
        return passwordEncoder.encode(input);
    }
}
